#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File  : urls
# @Author: Eason
# @Date  : 2019/8/4
# @Desc  :

from django.urls import path, re_path

from . import views
# url的命名空间
app_name = 'verification'

urlpatterns = [
    path('image_code/', views.image_code_view, name='image_code'),

    re_path('username/(?P<username>\w{5,20})/', views.check_username_view, name='check_username'),
    re_path('mobile/(?P<mobile>1[3-9]\d{9})/', views.check_mobile_view, name='check_mobile'),
    path('sms_code/', views.SmsCodeView.as_view(), name='sms_code'),
]